#include "stdafx.h"
#include "ie_wrapper_ctrl.h"
#include "dll_object.h"
#include <interface/common_dlg_interface.h>
#include <commondef/glb_msg_define.h>

IMPLEMENT_DYNCREATE(ie_wrapper_ctrl, CSmpHtmlView)

BEGIN_MESSAGE_MAP(ie_wrapper_ctrl, CSmpHtmlView)
END_MESSAGE_MAP()

BEGIN_DISPATCH_MAP(ie_wrapper_ctrl, CSmpHtmlView)
END_DISPATCH_MAP()

ie_wrapper_ctrl::ie_wrapper_ctrl()
{
	
}

ie_wrapper_ctrl::~ie_wrapper_ctrl()
{
	
}

void ie_wrapper_ctrl::OnDocumentComplete(LPCTSTR lpszURL)
{
	CHtmlView::OnDocumentComplete(lpszURL);
	SetScriptDocument();
	::PostMessage(GetParent()->GetSafeHwnd(), WM_DOCUMENT_LOAD_COMPLETE, 0, 0);
}